package com.fei.user.api;


import com.fei.user.pojo.User;
import com.fei.user.pojo.UserDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 登录接口
 */
@RestController
public interface UserApi {

    /**
     * 按用户名和密码查询用户
     *
     * @return
     */
    @PostMapping("query")
    User queryUser(@RequestBody UserDTO user);

}
